.class public Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView;
.super Landroid/widget/LinearLayout;
.source "DailyListView.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView$a;
    }
.end annotation


# instance fields
.field private a:Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView$a;

.field private b:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    .line 4
    invoke-direct {p0, p1, v0}, Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0
    .param p2    # Landroid/util/AttributeSet;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param

    .line 1
    invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/4 p1, 0x0

    .line 2
    iput p1, p0, Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView;->b:I

    .line 3
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView;->a()V

    return-void
.end method

.method private a()V
    .locals 1

    const/4 v0, 0x1

    .line 1
    invoke-virtual {p0, v0}, Landroid/widget/LinearLayout;->setOrientation(I)V

    return-void
.end method

.method private a(Landroid/view/View;)V
    .locals 3

    .line 11
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/rk;

    .line 12
    iget v1, v0, Les/rk;->c:I

    iget v2, p0, Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView;->b:I

    if-eq v1, v2, :cond_0

    .line 13
    invoke-virtual {p0, v2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/estrongs/android/pop/app/analysis/daily/view/a;

    .line 14
    invoke-virtual {v1}, Lcom/estrongs/android/pop/app/analysis/daily/view/a;->b()V

    .line 15
    check-cast p1, Lcom/estrongs/android/pop/app/analysis/daily/view/a;

    .line 16
    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/analysis/daily/view/a;->a()V

    .line 17
    iget p1, v0, Les/rk;->c:I

    iput p1, p0, Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView;->b:I

    .line 18
    iget-object p1, p0, Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView;->a:Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView$a;

    if-eqz p1, :cond_0

    .line 19
    invoke-interface {p1, v0}, Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView$a;->a(Les/rk;)V

    :cond_0
    return-void
.end method


# virtual methods
.method public a(Ljava/util/List;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/rk;",
            ">;)V"
        }
    .end annotation

    if-nez p1, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/rk;

    .line 3
    new-instance v1, Lcom/estrongs/android/pop/app/analysis/daily/view/a;

    invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/estrongs/android/pop/app/analysis/daily/view/a;-><init>(Landroid/content/Context;)V

    .line 4
    invoke-virtual {v1, v0}, Lcom/estrongs/android/pop/app/analysis/daily/view/a;->a(Les/rk;)V

    .line 5
    invoke-virtual {v1, p0}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 6
    iget v2, v0, Les/rk;->c:I

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->setId(I)V

    .line 7
    invoke-virtual {v1, v0}, Landroid/widget/RelativeLayout;->setTag(Ljava/lang/Object;)V

    .line 8
    iget v0, v0, Les/rk;->c:I

    iget v2, p0, Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView;->b:I

    if-ne v0, v2, :cond_1

    .line 9
    invoke-virtual {v1}, Lcom/estrongs/android/pop/app/analysis/daily/view/a;->a()V

    .line 10
    :cond_1
    invoke-virtual {p0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    goto :goto_0

    :cond_2
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView;->a(Landroid/view/View;)V

    return-void
.end method

.method public setOnItemClickListener(Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView$a;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView;->a:Lcom/estrongs/android/pop/app/analysis/daily/view/DailyListView$a;

    return-void
.end method
